import http from '../../utils/request/request'

export function getInfoBypage(page = 1, size = 5) {
  return http({
    url: `/processing/processing-supplier/page/${page}/${size}`,
    method:'get'
  })
}
//根据供应商名称查询供应商
export function getSupplierInfo(page=1,size=500,value) {
  return http({
    url: `/processing/processing-supplier/page/${page}/${size}/key/${value}`,
    method:'get'
  })
}
//新增供应商
export function addInfo(data) {
  return http({
    url: '/processing/processing-supplier/',
    method: 'post',
    data
  })
}
//修改供应商
export function editInfo(data) {
  return http({
    url: '/processing/processing-supplier/',
    method: 'put',
    data
  })
}
//删除供应商
export function delInfo(id) {
  return http({
    url: `/processing/processing-supplier/${id}`,
    method:'delete'
  })
}
//模糊查询
export function detialInfo(page=1,size=5,value) {
  return http({
    url: `/processing/processing-supplier/page/${page}/${size}/key/${value}`,
    method:'get'
  })
}